//
//  UINavigationController+hideBottomBar.h
//  基本结构
//
//  Created by 蓝其 on 16/10/19.
//  Copyright © 2016年 蓝其. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIViewController(RBHideBottomBar)

/** 默认为NO,push自动隐藏底部导航 */
@property(nonatomic, assign) BOOL disableAutoHideBottomBar;

@end

@interface UINavigationController(RBAdd)

/** 移除子控制器 */
- (void)removeViewControllers: (NSArray *)vcs animated: (BOOL)animated;

/** 先push,再移除,看不出痕迹 */
- (void)pushToViewController: (UIViewController *)vc animated: (BOOL)animated removeViewControllers: (NSArray *)vcs;
- (void)pushToViewController: (UIViewController *)vc animated: (BOOL)animated removeVcCount: (NSInteger)vcCount;

/** 回退到最后一个符合指定类型的控制器 */
- (void)popToViewControllerWithClass: (Class)vcClass animated: (BOOL)animated;

/** 回退到指定控制器index */
- (void)popToViewControllerWithIndex: (NSInteger)index animated: (BOOL)animated;

/** 回退vcCount个控制器 */
- (void)popViewControllerWithCount: (NSInteger)vcCount animated: (BOOL)animated;

@end
